package com.online.music.utils;

import cn.dev33.satoken.stp.StpUtil;

/**
 * @Author admin
 * @Description UserContextUtil
 * @Date 2024/06/02/16:49
 */
public class UserContextUtil {
    public static Long getUserId() {
        // 当前用户id
        Object obj = StpUtil.getLoginId();
        return Long.valueOf(String.valueOf(obj));
    }
}
